package com.example.a7822.myapplication.shopcart.presenter;

import android.content.Context;

import com.example.a7822.myapplication.shopcart.beans.GoodBean;
import com.example.a7822.myapplication.shopcart.model.GoodModel;
import com.example.a7822.myapplication.shopcart.model.GoodModelImpl;


public class GoodPresenterImpl implements GoodPresenter, GoodModelImpl.OnLoadGoodListener {

    private Context mContent;
//    private GoodDetailView goodDetailView;
    private GoodModel goodModel;

//    public GoodDetailPresenterImpl(){}
/*    public GoodDetailPresenterImpl(Context mContent, GoodDetailView goodDetailView) {
        this.mContent = mContent;
        this.mNewsDetailView = mNewsDetailView;
        mNewsModel = new NewsModelImpl();
    }*/


    @Override
    public void loadOneGood(int goodID) {
        /*        mNewsDetailView.showProgress();
        String url= Url.CONTROL_SERVER_ADDR+ String.format(Url.PARAM_GET_NEWS_INFO,docId);
        mNewsModel.loadNewsDetail(url, this);*/
    }

    @Override
    public void onLoadGoodSuccess(GoodBean goodBean) {
      /*  if (goodBean != null) {
            mNewsDetailView.showNewsDetialContent(goodBean.getBody());
        }
        mNewsDetailView.hideProgress();*/
    }

    @Override
    public void onLoadGoodFailure(String msg, Exception e) {
//        mNewsDetailView.hideProgress();
    }


}
